Skip to content

Proof-of-concept rewrite to support automatic styler generation#11

Draft
ali1234 wants to merge 1 commit intotwri:mainfrom
ali1234:main
Draft

Proof-of-concept rewrite to support automatic styler generation#11
ali1234 wants to merge 1 commit intotwri:mainfrom
ali1234:main

Conversation

@ali1234
Copy link

@ali1234 ali1234 commented Aug 31, 2023

At the request of a user, I rewrote this using metaprogramming techniques to support auto-generating many node types from directories of json files, so that you can have eg a Camera Styler or a Lighting Styler. It also supports creating nodes with multiple selection fields, so you can eg combine camera and lighting styles into one node with two drop downs, or any combination you want, eg the Perfection Styler that has almost everything. The code is very much proof-of-concept, and I've also rewritten the loaders to use pathlib and turned templates into a class. I'm not sure where the included json files came from - I got them from the user.

I don't recommend merging this as is, and I'm probably not going to be able to maintain it long-term. I just wanted to let you know it exists, and to gauge interest.

@ali1234
Copy link
Author

ali1234 commented Aug 31, 2023

Also I haven't heavily tested it, especially the advanced nodes.

@TripleHeadedMonkey
Copy link

Absolutely amazing work I've only been hands on for a few minutes at this point, but this will replace all of my existing implementations of Prompt Styler. I definitely feel like this is the most comprehensive fork/styler currently available for Comfy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants